package com.ssg.poultry.servlet.admin;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ssg.poultry.servlet.BaseServlet;

@WebServlet("/admin/console")
public class ConsoleServlet extends BaseServlet{
	
	private static final long serialVersionUID = 1L;

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		List<String> ports = serialPortService.listPortName();
		req.setAttribute("ports", ports);
		this.jsp("admin/console");
	}
}
